Skip to content

Conversation

@jeffmccune
Copy link
Contributor

Without this patch the registry module blows up when installed onto a
Linux Puppet Master. The utility code and the structure of the types
and providers end up requiring win32/registry which will never be
present on non-windows systems. In addition, the types and providers
mix in module level support code, which does not work because of the
following Puppet bugs, all related to our inability to load utility code
from the $LOAD_PATH.

This has annoyed me enough that I'm going revisit these bugs and the
interplay of the modulepath, environments, and $LOAD_PATH.

@jeffmccune
Copy link
Contributor Author

Please don't merge this yet, I'm going to be re-writing history to get the tests cleaned up.

I'm also considering moving all of the Win32 specific stuff into a single shim module so we can easily do spec testing on non-windows platforms.

@jeffmccune
Copy link
Contributor Author

Specs are passing on windows. We'll revisit refactoring out the Win32 specific constants later on. This is ready for review.

Without this patch the registry module blows up when installed onto a
Linux Puppet Master.  The utility code and the structure of the types
and providers end up requiring win32/registry which will never be
present on non-windows systems.  In addition, the types and providers
mix in module level support code, which does not work because of the
following Puppet bugs, all related to our inability to load utility code
from the $LOAD_PATH.

 * https://projects.puppetlabs.com/issues/3947
 * https://projects.puppetlabs.com/issues/4248
 * https://projects.puppetlabs.com/issues/14073

This has annoyed me enough that I'm going revisit these bugs and the
interplay of the modulepath, environments, and $LOAD_PATH.
@jeffmccune
Copy link
Contributor Author

@joshcooper resources { registry_key: } issue has been fixed in a8d9402

joshcooper added a commit that referenced this pull request Apr 26, 2012
…a_master

Work around #3947, #4248, #14073; load our utility code
@joshcooper joshcooper merged commit 4e8aa57 into puppetlabs:master Apr 26, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants